package com.wei.ssm.service;

import com.wei.ssm.domain.Permission;
import com.wei.ssm.domain.Role;

import java.util.List;

public interface IRoleService {

    List<Role> findAll();

    void save(Role role);

    Role findById(int id) throws Exception;

    void deleteById(int id) throws Exception;


    List<Permission> findOtherPermiss(int id);

    void addPermissionToRole(int roleId, int[] ids);
}
